package com.yzmoney.wechat.model.token;

import org.springframework.stereotype.Component;

import java.util.Date;

@Component
public class JsToken {

	private String ticket;

	private Date lastGetTime;

	public JsToken() {
		super();
	}

	public JsToken(String token, Date lastGetTime) {
		super();
		this.ticket = token;
		this.lastGetTime = lastGetTime;
	}

	@Override
	public String toString() {
		return "AccessToken [token=" + ticket + ", lastGetTime="
				+ lastGetTime + "]";
	}

	public String getTicket() {
		return ticket;
	}

	public void setTicket(String ticket) {
		this.ticket = ticket;
	}

	public Date getLastGetTime() {
		return lastGetTime;
	}

	public void setLastGetTime(Date lastGetTime) {
		this.lastGetTime = lastGetTime;
	}
}
